package com.csk.zsk.compents.service;

import java.util.Date;
import java.util.List;

import com.csk.zsk.compents.entity.BookResource;
import com.csk.zsk.compents.entity.ComicResource;
import com.csk.zsk.compents.entity.MusicResource;
import com.csk.zsk.compents.entity.NewsResource;
import com.csk.zsk.compents.entity.PicnewsResource;
import com.csk.zsk.compents.entity.VideoResource;

public interface ResourceService {

	public void saveBookResource(BookResource bookResource);

	public void saveComicResource(ComicResource comicResource);

	public void saveMusicResource(MusicResource musicResource);

	public void saveNewsResource(NewsResource newsResource);

	public void savePicnewsResource(PicnewsResource picnewsResource);

	public void saveVideoResource(VideoResource videoResource);

	public void deleteBookResource(String id);

	public void deleteComicResource(String id);

	public void deleteMusicResource(String id);

	public void deleteNewsResource(String id);

	public void deletePicnewsResource(String id);

	public void deleteVideoResource(String id);

	public BookResource getBookResource(String id);

	public ComicResource getComicResource(String id);

	public MusicResource getMusicResource(String id);

	public NewsResource getNewsResource(String id);

	public PicnewsResource getPicnewsResource(String id);

	public VideoResource getVideoResource(String id);

	public List<BookResource> searchBookResource(String title, String userName, Date startDate, Date endDate);

	public List<ComicResource> searchComicResource(String title, String userName, Date startDate, Date endDate);

	public List<MusicResource> searchMusicResource(String title, String userName, Date startDate, Date endDate);

	public List<NewsResource> searchNewsResource(String title, String userName, Date startDate, Date endDate);

	public List<PicnewsResource> searchPicnewsResource(String title, String userName, Date startDate, Date endDate);

	public List<VideoResource> searchVideoResource(String title, String userName, Date startDate, Date endDate);

	public List<BookResource> getBookResources(String userId, Integer num);

	public List<ComicResource> getComicResources(String userId, Integer num);

	public List<MusicResource> getMusicResources(String userId, Integer num);

	public List<NewsResource> getNewsResources(String userId, Integer num);

	public List<PicnewsResource> getPicnewsResources(String userId, Integer num);

	public List<VideoResource> getVideoResources(String userId, Integer num);
}
